<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>JavaScript Call 方法</title>
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <script>
//function Class1() {
	//this.name = 'class1';
	//this.showName = function() {
		//alert(this.name);
	//}
//}
//function Class2() {
	//this.name = 'class2';
//}
//var c1 = new Class1();
//var c2 = new Class2();
//c1.showName.call(c2);

//  实现继承
//function Class1() {
	//this.showText = function(txt) {
		//alert(txt);
	//}
//}
//function Class2() {
	//Class1.call(this);
//}
//var c2 = new Class2();
//c2.showText('Cc');
  </script>
 </head>

 <body>
  
 </body>
</html>
